<?php
class Message extends CI_Model {
	function __construct() {
		parent::__construct();
		$this->load->database();
	}
	
	public function createMessage($data) {
		$this->db->insert('messages', $data);
		return $this->insert_id();
	}
	
	public function deleteMessage($data) {
		$this->db->delete('messages', $data);
	}
}
?>